const part1 = {
    // namespaced: true,
    state: {
        count: 50,
        num: 1,
    },
    getters: {
        total: state => {
            return state.count * state.num;
        }
    },
    mutations: {
        increment(state, num) {
            state.count = state.count + num;
        }
    },
    actions: {
        increment({
            commit
        }, num) {
            setTimeout(() => {
                commit('increment', num)
            }, 1000)
        }
    }
}
export default part1